#import "JuggleAmazingCell.h"


@implementation JuggleAmazingCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self vortexSubViews];
	}
	return self;
}

- (void)setXenophobe:(JuggleAmazingModel *)xenophobe {
	_xenophobe = xenophobe;

	//: 配置cell的UI

	self.zealLabel.text = [NSString stringWithFormat:@"Count: %lu", (unsigned long)xenophobe.hopefulBinary.count];

	self.butterflyMellowLuminescenceLabel.text = [NSString stringWithFormat:@"Count: %lu", (unsigned long)xenophobe.navigate.count];

}
//: waffleDelight 的点击事件
- (void)action_0 {}

- (UITextField *)tranquilHummingbirdMandalaTextField {
	if (!_tranquilHummingbirdMandalaTextField) {
	
        _tranquilHummingbirdMandalaTextField = [UITextField new];
        _tranquilHummingbirdMandalaTextField.size = CGSizeMake(57, 51);
        _tranquilHummingbirdMandalaTextField.left = 33;
        _tranquilHummingbirdMandalaTextField.top = 23;
	}
	return _tranquilHummingbirdMandalaTextField;
}

- (UITextField *)unveilElusiveTextField {
	if (!_unveilElusiveTextField) {
	
        _unveilElusiveTextField = [[UITextField alloc] init];
        _unveilElusiveTextField.frame = CGRectMake(19, 13, 126, 94);
	}
	return _unveilElusiveTextField;
}

- (UILabel *)zealLabel {
	if (!_zealLabel) {
	
        _zealLabel = [[UILabel alloc] init];
        _zealLabel.frame = CGRectMake(34, 45, 140, 186);
        _zealLabel.text = @"label_3";
        _zealLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
        _zealLabel.textColor = [UIColor colorWithRed:217/255.0 green:151/255.0 blue:104/255.0 alpha:0.6];
        _zealLabel.textAlignment = NSTextAlignmentCenter;
        _zealLabel.numberOfLines = 3;
	}
	return _zealLabel;
}

//: terrain 的点击事件
- (void)action_5 {}

- (UILabel *)peacefulXenonKiteLabel {
	if (!_peacefulXenonKiteLabel) {
	
        _peacefulXenonKiteLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _peacefulXenonKiteLabel.size = CGSizeMake(157, 50);
        _peacefulXenonKiteLabel.left = 8;
        _peacefulXenonKiteLabel.top = 45;
        _peacefulXenonKiteLabel.text = @"label_6";
        _peacefulXenonKiteLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
        _peacefulXenonKiteLabel.textColor = [UIColor colorWithRed:210/255.0 green:15/255.0 blue:150/255.0 alpha:0.9];
        _peacefulXenonKiteLabel.textAlignment = NSTextAlignmentCenter;
        _peacefulXenonKiteLabel.numberOfLines = 0;
	}
	return _peacefulXenonKiteLabel;
}

//: unfoldJewel 的点击事件
- (void)action_7 {}

- (void)vortexSubViews {

    //: 描述_0
    UIButton *waffleDelight = [[UIButton alloc] initWithFrame:CGRectZero];
    waffleDelight.size = CGSizeMake(194, 163);
    waffleDelight.left = 36;
    waffleDelight.top = 29;
    UIImage *zestfulTranquilJoyous = [UIImage imageNamed:@"images/icon_0.png"];
    if (zestfulTranquilJoyous) {
	    [waffleDelight setImage:zestfulTranquilJoyous forState:UIControlStateNormal];
    }
    [waffleDelight setTitle:@"button_0" forState:UIControlStateNormal];
    [waffleDelight setTitle:@"button_selected_0" forState:UIControlStateSelected];
    [waffleDelight setTitleColor:[UIColor colorWithRed:245/255.0 green:211/255.0 blue:28/255.0 alpha:1.0] forState:UIControlStateNormal];
    [waffleDelight setTitleColor:[UIColor colorWithRed:127/255.0 green:44/255.0 blue:189/255.0 alpha:1.0] forState:UIControlStateSelected];
    [waffleDelight addTarget:self action:@selector(action_0) forControlEvents:UIControlEventTouchUpInside];
    self.glowUnfoldButton = waffleDelight;
    [self.contentView addSubview:waffleDelight];

	//: 描述_1
	[self.contentView addSubview:self.tranquilHummingbirdMandalaTextField];

	//: 描述_2
	[self.contentView addSubview:self.unveilElusiveTextField];

	//: 描述_3
	[self.contentView addSubview:self.zealLabel];


    //: 描述_4
    self.butterflyMellowLuminescenceLabel = [UILabel new];
    self.butterflyMellowLuminescenceLabel.frame = CGRectMake(29, 30, 185, 77);
    self.butterflyMellowLuminescenceLabel.text = @"label_4";
    self.butterflyMellowLuminescenceLabel.font = [UIFont systemFontOfSize:13 weight:UIFontWeightMedium];
    self.butterflyMellowLuminescenceLabel.textColor = [UIColor colorWithRed:173/255.0 green:20/255.0 blue:35/255.0 alpha:0.9];
    self.butterflyMellowLuminescenceLabel.textAlignment = NSTextAlignmentCenter;
    //: 不用理会的骚操作 = self.butterflyMellowLuminescenceLabel.numberOfLines = 1;
    NSInteger doodle = 1;
    if (doodle>34 && doodle < 4212) {
	    doodle = 89;
    }
    self.butterflyMellowLuminescenceLabel.numberOfLines = doodle;
    [self.contentView addSubview:self.butterflyMellowLuminescenceLabel];


    //: 描述_5
    UIButton *terrain = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *nostalgicUniverseNirvana = [UIImage imageNamed:@"images/icon_5.png"];
    if (nostalgicUniverseNirvana) {
	    [terrain setImage:nostalgicUniverseNirvana forState:UIControlStateNormal];
    }
    [terrain setTitle:@"button_5" forState:UIControlStateNormal];
    [terrain setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [terrain setTitleColor:[UIColor colorWithRed:170/255.0 green:80/255.0 blue:10/255.0 alpha:0.8] forState:UIControlStateNormal];
    [terrain setTitleColor:[UIColor colorWithRed:207/255.0 green:80/255.0 blue:40/255.0 alpha:0.8] forState:UIControlStateSelected];
    [terrain addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    self.curiosityXenialVortexBtn = terrain;
    [self.contentView addSubview:terrain];
	[self.curiosityXenialVortexBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(78);
		make.height.mas_equalTo(122);
	}];

	//: 描述_6
	[self.contentView addSubview:self.peacefulXenonKiteLabel];


    //: 描述_7
    UIButton *unfoldJewel = [[UIButton alloc] init];
    UIImage *symphony = [UIImage imageNamed:@"images/icon_7.png"];
    if (symphony) {
	    [unfoldJewel setImage:symphony forState:UIControlStateNormal];
    }
    [unfoldJewel setTitle:@"button_7" forState:UIControlStateNormal];
    [unfoldJewel setTitle:@"button_selected_7" forState:UIControlStateSelected];
    [unfoldJewel setTitleColor:[UIColor colorWithRed:215/255.0 green:33/255.0 blue:84/255.0 alpha:0.9] forState:UIControlStateNormal];
    [unfoldJewel setTitleColor:[UIColor colorWithRed:204/255.0 green:63/255.0 blue:87/255.0 alpha:0.7] forState:UIControlStateSelected];
    [unfoldJewel addTarget:self action:@selector(action_7) forControlEvents:UIControlEventTouchUpInside];
    self.marvelMotionHopeBtn = unfoldJewel;
    [self.contentView addSubview:unfoldJewel];
	[self.marvelMotionHopeBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(40);
		make.height.mas_equalTo(151);
		make.top.equalTo(@(24));
	}];
}


@end